<template>
  <view class="container">
    <!-- 顶部组件 -->
    <u-navbar
      id="nav-bar"
      :is-back="true"
      :background="{ background: '#fff' }"
      :border-bottom="false"
      title="账号切换"
    ></u-navbar>
    <view class="content">
      <view class="item">
        <view class="main">
          <view class="headImg">
            <u-avatar
              src="/static//images/my-rzmx.png"
              mode="circle"
              :size="98"
            ></u-avatar>
          </view>
          <view class="info">
            <view class="info-name">
              <text>张三三</text> <text class="default">默认</text></view
            >
            <view class="info-phone">18888888888</view>
          </view>
        </view>
        <view class="btn">解绑</view>
      </view>
    </view>
    <view class="btnBox">
      <view class="btn" @click="submit">确认绑定</view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url: url,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  min-height: 100vh;
  padding: 30rpx;
  text-align: center;
  background-color: #f5f5f5;
}

.content {
  width: 100%;
  overflow: hidden;
  .item {
    float: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30rpx;
    width: 100%;
    padding: 30rpx;
    background: #ffffff;
    border-radius: 20rpx;
    overflow: hidden;
    .main {
      flex: 1;
      display: flex;
      min-width: 0;
      .headImg {
        width: 98rpx;
        height: 98rpx;
      }
      .info {
        padding-left: 20rpx;
        text-align: left;
        .info-name {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          font-family: PingFang SC, sans-serif;
          font-weight: 800;
          font-size: 28rpx;
          color: #333333;
          .default {
            margin-left: 10rpx;
            width: 72rpx;
            height: 28rpx;
            font-weight: 400;
            font-size: 20rpx;
            color: #3388ff;
            background: #e5f0ff;
            border-radius: 14rpx;
            text-align: center;
          }
        }
        .info-phone {
          margin-top: 20rpx;
          font-family: DIN, sans-serif;
          font-weight: bold;
          font-size: 32rpx;
          color: #333333;
        }
      }
    }
    .btn {
      width: 100rpx;
      height: 48rpx;
      line-height: 48rpx;
      font-weight: 400;
      font-size: 28rpx;
      color: #b7926e;
      text-align: right;
    }
  }
}

.btnBox {
  position: absolute;
  left: 0;
  bottom: 74rpx;
  width: 100%;
  height: 88rpx;
  padding: 0 30rpx;
  .btn {
    line-height: 88rpx;
    font-size: 28rpx;
    font-weight: normal;
    color: #ffffff;
    background: linear-gradient(90deg, #332108, #201403);
    border-radius: 20rpx;
    text-align: center;
  }
}
</style>
